Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 1 - Appearance Manager Reference / Appearance Manager Functions
Coordinating Colors and Patterns With the Current Theme /


GetThemeAccentColors

NEW WITH THE APPEARANCE MANAGER

Gets a copy of the accent colors for the platinum theme.

pascal OSStatus GetThemeAccentColors (CTabHandle *outColors);
outColors
On output, a handle to the accent colors
function result
A result code; see "Result Codes". The result appearanceThemeHasNoAccents is returned if the current theme has no accent colors.
DESCRIPTION
The GetThemeAccentColors function returns a copy of an element's accent colors, but only for the platinum theme. If GetThemeAccentColors is called when another theme is current, it returns an error.

SPECIAL CONSIDERATIONS
Make sure Appearance Manager 1.0.1 is present before calling the GetThemeAccentColors function. See "Appearance Manager Gestalt Selector Constants" for details on how to determine if the Appearance Manager is present and what its version is, if so.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998